<ng-template
  cdkConnectedOverlay
  [cdkConnectedOverlayOrigin]="overlayOrigin"
  [cdkConnectedOverlayHasBackdrop]="hasBackdrop"
  cdkConnectedOverlayBackdropClass="fui-popover-backdrop"
  (backdropClick)="hide()"
  (detach)="hide()"
  (positionChange)="onPositionChange($event)"
  [cdkConnectedOverlayPositions]="positions"
  [cdkConnectedOverlayOpen]="visible | async"
>
  <div
    class="fui-popover"
    [ngClass]="classMap"
    [@fadeAnimation]="visible | async"
  >
    <div class="fui-popover-content">
      <div class="fui-popover-arrow"></div>
      <div class="fui-popover-inner">
        <div class="fui-popover-inner-content">
          <ng-content></ng-content>
        </div>
      </div>
    </div>
  </div>
</ng-template>
